package com.cqc.pgy02;

import android.support.v7.app.AppCompatActivity;

import com.pgyersdk.feedback.PgyFeedbackShakeManager;

/**
 * Created by ${cqc} on 2017/1/9.
 */

public class BaseActivity extends AppCompatActivity {

    @Override
    protected void onResume() {
        super.onResume();

        //灵敏度
        PgyFeedbackShakeManager.setShakingThreshold(300);
        //dialog
//        PgyFeedbackShakeManager.register(this);
        //activity
        PgyFeedbackShakeManager.register(this,false);
    }

    @Override
    protected void onPause() {
        super.onPause();
        PgyFeedbackShakeManager.unregister();
    }
}
